# 设计一个类
class Student:
    name = None #姓名
    gender = None   #性别
    nationality = None  #国籍
    native_place = None #籍贯
    age = None  #年龄

    # 类方法中的self不用管，代表自身
    def getName(self):
        return self.name

    def seyHi(self,name):
        print(f"hello {name}")

stu1 = Student()
stu1.name = "高圆圆"
stu1.gender = "女"
stu1.nationality = "中国"
stu1.native_place="山东省"
stu1.age = 40
print(stu1)

"""
class 类名称：
    类的属性
    类的方法
"""
class Clock:
    id = None
    price = None

    def ring(self):
        import winsound
        winsound.Beep(2000,3000)
clock1 = Clock()
clock1.ring()